package com.example.shiXun.service;


import com.example.shiXun.base.result.Results;
import com.example.shiXun.domain.SysRole;
import com.example.shiXun.dto.RoleDto;

public interface RoleService {
    Results<SysRole> getAllRole();

    Results<SysRole> getAllRoleByPage(Integer offset, Integer limit);

    Results<SysRole> getRoleByFuzzyName(String roleName, Integer offset, Integer limit);

    Results<SysRole> save(RoleDto roleDto);

    SysRole getRoleById(Integer id);

    Results update(RoleDto roleDto);

    Results delete(Integer id);
}
